package a66weding.com.jiehuntong.pager;

import android.app.Activity;
import android.util.Log;
import android.view.View;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.application.DataWareHourse;
import a66weding.com.jiehuntong.beans.ErrorBean;
import a66weding.com.jiehuntong.beans.HttpRequestBean;
import a66weding.com.jiehuntong.beans.SuccessBean;
import a66weding.com.jiehuntong.beans.TableMessageBean;
import a66weding.com.jiehuntong.beans.User;
import a66weding.com.jiehuntong.http.HttpHandleUtil;
import a66weding.com.jiehuntong.http.OnNetResultListener;
import a66weding.com.jiehuntong.http.RequestCode;
import a66weding.com.jiehuntong.http.UrlDealUtil;

/**
 * Created by admin on 2016/6/7.
 */
public class Tools_HaveGuemsgPager extends BasePager implements OnNetResultListener {

    private ListView guest_lv;
    private String mobileNum;
    List<TableMessageBean> tabList = new ArrayList<TableMessageBean>();

    public Tools_HaveGuemsgPager(Activity activity) {
        super(activity);
    }

    @Override
    protected View getView() {
        View view = View.inflate(mActivity, R.layout.activity_tools_guestsseatlist, null);
        guest_lv = (ListView) view.findViewById(R.id.guest_listview);
        getRtnData();
        return view;
    }

    private void getRtnData() {
        String userUrl = UrlDealUtil.getRealUrl(RequestCode.RETURN_WEDDINGTABLE);
        User user = DataWareHourse.getInstance().getmUser();
        mobileNum = user.getData().get(0).getNvc_MobilePhone();
        userUrl += mobileNum;
        HttpRequestBean requestBean = new HttpRequestBean(RequestCode.POSTEQUEST, userUrl, this, HttpRequestBean.class, RequestCode.RETURN_WEDDINGTABLE);
        HttpHandleUtil.executeCommonPost(mActivity, requestBean);


    }

    @Override
    public void onSucess(SuccessBean sucessbean)  {


    }

    @Override
    public void onError(ErrorBean errorBean) {

    }
}
